//
//  Enemy.h
//  Space shooting
//
//  Created by Raiden on 9/12/13.
//
//

#ifndef __Space_shooting__Enemy__
#define __Space_shooting__Enemy__

#include <iostream>
#include "cocos2d.h"
#include "CCMWSprite.h"

using namespace cocos2d;

class Enemy : public cocos2d::CCSprite {
  
protected:
    int damage;
    int speed;
    CCSize size;
    
    CCMWSprite *explotion;
    CCMWSprite *orb;
    
public:
    
    int hp;
    int score;
    
    Enemy();
    ~Enemy();
    
    void update(float delta);
    virtual void selfExplotion();
    
    void addBulletOrb(CCPoint point);
    void addScoreParitcle(CCPoint point);
    void removeParticle(CCObject *sender);
    void removeBulletOrb(CCObject *sender);
    
    void move();
    void remove();
};

#endif /* defined(__Space_shooting__Enemy__) */
